<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'corporationreg.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
<!--
.STYLE1 {font-size: 12px}
.STYLE2 {
	color: #FF0000;
	font-weight: bold;
	font-size: 12px;
}
.STYLE3 {
	font-size: 13px;
	font-weight: bold;
}

-->
</style>
</head>

<body>
<div  style=" height:55px;border:#FF0000 0px solid; margin:0px; background: url(imgs/top_bg.jpg)">
<div align="right" style="margin:35px 30px auto"><a href="./index.jsp"><font color="#0000FF"> 退出</font></a></div>
</div>
<div style="border:#66CCFF 2px solid;  background-color:#F9F9F9">


<div style="border: #DDE7FF 1px solid ; background-color: #CBE4F8 ; margin:5px 10px 5px; float:left; clear:both">
 
 
    <form action="<%=basePath%>/servlet/CorporationRegServlet" method="POST">
 <table border="0" align="center">
     <tr>
       <td height="31" colspan="2" bgcolor="#AC95EA">&nbsp;<img src="imgs/title1.gif" /></td>
     </tr>
     <tr>
       <td height="30" colspan="2"><span class="STYLE2">&nbsp;&nbsp;&nbsp;以下项必填</span></td>
      </tr>
     <tr>
       <td width="98" height="35"><span class="STYLE1">&nbsp;&nbsp;&nbsp;企业名称:</span></td>
       <td width="454"><input name="coruser" type="text"" id="coruser1" style="width:260px; background-color: #F9F9FB;" onChange="return check1();"/><span class="STYLE1">最少六位</span></td>
     </tr>
     <tr>
       <td height="35">&nbsp;&nbsp;<span class="STYLE1">&nbsp;&nbsp;&nbsp;密码:</span></td>
       <td><input type="password" style="width:200px; background-color: #F9F9FB;" name="corpass" id="corpass1" onChange="return check2();"/><span class="STYLE1">最少6为非纯数字最合</span></td>
       </tr>
     <tr>
       <td height="35"><span class="STYLE1">&nbsp;&nbsp;&nbsp;确认密码:</span></td>
       <td><input type="password" style="width:200px;background-color: #F9F9FB;" name="corcpass" id="corcpass1" onChange="return check3();"/></td>
       </tr>
     <tr>
       <td height="35">&nbsp;&nbsp;<span class="STYLE1">&nbsp;&nbsp;&nbsp;地址:</span></td>
       <td><select id="sheng"  onChange="area('shi','xian',this.value);"><option selected="selected">请选择</option></select>
	<select id="shi" onChange="area('xian','xian',this.value);"><option selected="selected">请选择</option></select>
	<select id="xian" ><option selected="selected">请选择</option></select></td>
       </tr>
     <tr>
       <td height="35"><span class="STYLE1">&nbsp;&nbsp;&nbsp;联系电话:</span></td>
       <td><input type="text" style="background-color:  #F9F9FB;" name="contain" id="contain1" onChange="return check4();"/><span class="STYLE1">6-11位</span></td>
       </tr>
     <tr>
       <td height="35">&nbsp;<span class="STYLE1">&nbsp;&nbsp;&nbsp;e-mail</span></td>
       <td> <input type="text" style="width:260px;background-color: #F9F9FB;" name="email" id="email1" onChange="return check5();"/></td>
       </tr>
     <tr>
       <td><span class="STYLE1">&nbsp;&nbsp;&nbsp;公司简介:</span></td>
       <td rowspan="2"><textarea name="introduce" style="background-color: #F9F9FB;" id="introduce1" cols="50" rows="10" onChange="return check6();"></textarea></td>
       </tr>
     <tr>
       <td>&nbsp;</td>
       </tr>
     <tr>
       <td height="50" colspan="2" align="center"><input name="submit" type="submit" onClick="return check();" value="注册"/></td>
       </tr>
   </table>
   <br/>
    </form>
  </div>
	<div style="border:#DDE7FF 1px solid; float:right; margin:5px 16px 5px 5px; background-color:#CBE4F8 ">
	<table border="0">
      <tr>
        <td colspan="4" height="31" bgcolor="#AC95EA"><img src="imgs/title2.gif" /></td>
      </tr>
      <tr>
        <td width="13" height="20"><img src="imgs/sign1.gif" /></td>
        <td colspan="2"><span class="STYLE3">雄厚的数据支持</span></td>
        <td width="165">&nbsp;</td>
      </tr>
      <tr>
        <td height="39">&nbsp;</td>
        <td colspan="3"><span class="STYLE1">14年的积累，日均保持197万有效职位；每天4000万页面浏览量，369万访问人数；拥有超过2200万份优秀人才的简历。</span></td>
      </tr>
      <tr>
        <td height="20"><img src="imgs/sign1.gif" /></td>
        <td colspan="2"><span class="STYLE3">独家垄断网络招聘通路</span></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td colspan="3"><span class="STYLE1">2008年，与搜狐、网易、TOM、腾讯、Yahoo、MSN、QQ、等，签订独家网络合作协议，有效简历招聘成功率大大高于其他网站。</span> </td>
      </tr>
      <tr>
        <td height="20"><img src="imgs/sign1.gif" /></td>
        <td colspan="2"><span class="STYLE3">全球领先的系统技术</span></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td colspan="3"><span class="STYLE1">全球独家搜索引擎系统，支持信息详尽的多关键字搜索方式，可以短时间内提供最精确的搜索结果，确保简历下载更加准确和敏捷。</span></td>
      </tr>
      <tr>
        <td colspan="4"><img src="imgs/xinchou330-110-2.gif" width="342" /></td>
      </tr>
      <tr>
        <td  colspan="4"><img src="imgs/gzcxq180-98-1.gif" width="345" height="110" /></td>
      </tr>
      <tr>
        <td colspan="4" bgcolor="#AC95EA" height="31"><img src="imgs/title4.gif" /></td>
      </tr>
      <tr>
        <td height="25">&nbsp;</td>
        <td width="56" rowspan="2"><img src="imgs/sign2.gif" /></td>
        <td width="95"><span class="STYLE1">免费服务热线：</span></td>
        <td><span class="STYLE1">100-4567-100</span></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td width="95">&nbsp;</td>
        <td><span class="STYLE1">101-4567-101</span></td>
      </tr>
     
    </table>
	</div>
	
	 <div><img src="imgs/top_1.gif" /></div>
  <br>
  <div style="border:#000000 solid 0px; margin:5px">
<table border="0" align="center">
  <tr>
    <td align="center"><span class="STYLE1">人才招聘 Email:xxx@qq.com　个人求职 Email:xxx@.com　或垂询100-4567-100</span></td>
  </tr>
  <tr>
    <td height="24" align="center"><span class="STYLE1">未经同意，不得转载本网站之所有招聘信息及作品 </span></td>
  </tr>
  <tr>
    <td align="center">   
      <span class="STYLE1"><span >客服工作时间：8：00——17：00</span></td>
  </tr>
  
  <tr>
    <td align="center"><img src="imgs/biaoshi.gif" /></td>
  </tr>
  <tr>
    <td align="center"><span class="STYLE1">4567工作网版权所有?2009-2019 </span></td>
  </tr>
   
</table>
</div>
</div>
	

</body>
</html>
<script>
function check1(){
	var coruser = document.getElementById("coruser1").value;
	var cor1 = /^[0-9a-zA-z]{6,20}$/;
	if(coruser==""){
		alert("用户名不能为空");
		return false;
	}if(!cor1.exec(coruser)){
		alert("用户名格式不正确");
		return false;
	}
}
function check2(){
	var corpass = document.getElementById("corpass1").value;
	var corp = /^[0-9a-zA-z]{6,20}$/;
	var corp1 = /^[0-9]{6,20}$/;
	if(corpass==""){
		alert("密码不能为空");
		return false;
	}
	if(corp1.exec(corpass)){
		alert("密码不能全为数字");
		return false;
	}
	if(!corp.exec(corpass)){
		alert("密码格式不正确");
		return false;
	}
}
function check3(){
	var corpass = document.getElementById("corpass1").value;
	var corcpass = document.getElementById("corcpass1").value;
	if(corpass!=corcpass){
		alert("密码不一致");
		return false;
	}
}
function check4(){
	var contain = document.getElementById("contain1").value;
	var contain1 = /^[0-9]{4,11}$/;
	if(!contain1.exec(contain)){
		alert("请输入正确的电话号码");
		return false;
	}
}
function check5(){
	var email = document.getElementById("email1").value;
	var email1 = /^[_a-z0-9]+@([_a-z0-9]+\.)+[a-z0-9]{2,3}$/;
	if(!email1.exec(email)){
		alert("请输入正确的email");
		return false;
	}
}
	function check6(){
	var introduce = document.getElementById("introduce1").value;
	if(introduce==""){
		alert("内容不能为空");
		return false;
	}
}
function check(){
	var coruser = document.getElementById("coruser1").value;
	var corpass = document.getElementById("corpass1").value;
	var corcpass = document.getElementById("corcpass1").value;
	var contain = document.getElementById("contain1").value;
	var email = document.getElementById("email1").value;
	var introduce = document.getElementById("introduce1").value;
	if(coruser==""){
		alert("用户名为空");
		return false;
	}
	if(corpass==""){
		alert("密码为空");
		return false;
	}
	if(corcpass==""){
		alert("确认密码为空");
		return false;
	}
	if(contain==""){
		alert("电话为空");
		return false;
	}
	if(email==""){
		alert("email为空");
		return false;
	}
	if(introduce==""){
		alert("简介为空");
		return false;
	}

}
</script>
<script src="./includes/ajax.js"></script>
<script>
function area(area,xian,id){
	var ajax=initAjax();
	ajax.open("get","<%=basePath%>servlet/AreaServlet?id="+id+"&r="+Math.random(),true);
	ajax.send(null);
	ajax.onreadystatechange = function(){
		if(ajax.readyState == 4){
			var a = document.getElementById(area);
			var x = document.getElementById(xian);
			a.length=1;
			x.length=1;
			var s = ajax.responseText;
			 var ss = s.split(";");
			for(var i=0;i<ss.length;i++){
			var sss = ss[i].split(":");
				if (window.ActiveXObject){
			a.add(new Option(sss[1],sss[0]));
			}
			if (document.getBoxObjectFor){
			a.add(new Option(sss[1],sss[0]),null);
			}
			}
		}
	}
}
area("sheng","xian","");
</script>